﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Guedes_Library;

/// <summary>
/// Summary description for CategoriaModel
/// </summary>
public class BannerModel:GuedesModel<banner>
{
    public BannerModel()
	{
		//
		// TODO: Add constructor logic here
		//
	}


    public override void DoChanges(banner entity, banner novo)
    {
        entity.Img_Banner = novo.Img_Banner;
        entity.Name = novo.Name;
        entity.Desc = novo.Desc;
    }

    public override string GetTabela()
    {
        return "guedesEntities.banner";
    }

    public override string GetKeyTabela()
    {
        return "ID";
    }

}